import { Dialog } from "vant";
export default {
  name: "btns",
  components: {},
  data() {
    return {   
      // 按钮背景
      btnBg: {
        backgroundImage: "url(" + require("@/assets/images/btnBg.png") + ")",
        backgroundRepeat: "no-repeat",
        backgroundSize: "cover",
      },
    };
  },
  created() {},
  mounted() {},
  methods: {
    // 列表
    listBtn(value) {
      if (value == "festivalList") {
        Dialog.alert({
          message: "功能维护中...",
        }).then(() => {});
        return true;
      }
      this.$router.push({
        name: value,
      });
    },
    // 退出
    popupBtn() {
      this.$emit("popupEmit");
    },
  },
};
